package com.core.family.admin.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author honglei
 * @version 1.0
 * @time: 2022-6-10 11:46:34
 * @Description PO对象 文件存储
 */
@Data
@TableName(value = "sys_storage")
public class SysStorage implements Serializable {


    /*
     *  主键id
     */
    @TableField(value = "id")
    //  private Long id;
    private String id;

    /*
     *  文件名称
     */

    @TableField(value = "name")
    private String name;

    /*
     *  文件类型
     */
    @TableField(value = "type")
    private Integer type;

    /*
     *  网络访问路径
     */

    @TableField(value = "url")
    private String url;

    /*
     *  相对路径
     */

    @TableField(value = "relative_path")
    private String relativePath;

    /*
     *  绝对路径
     */

    @TableField(value = "absolute_path")
    private String absolutePath;

    /*
     *
     */
    @TableField(value = "status")
    private Integer status;

    /*
     *
     */
    @TableField(value = "is_del")
    private Integer isDel;

    /*
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /*
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time")
    private Date updateTime;

}
